package be.rubengerits.bluetooth.tester.bluetooth;

import java.io.*;

public class FileBluetoothHandler extends BluetoothHandler {

	public void write(Object o) throws IOException {
		File f = (File) o;
		
		FileInputStream s = new FileInputStream(f);
		
		while (s.available() > 0) {
			getBluetoothSocket().getOutputStream().write(s.read());
		}
	}

	public Object read(Object o) throws IOException {
		
		return null;
	}
	

}
